package com.springboot.template.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.springboot.template.entity.User;
import com.springboot.template.mapper.IUserMapper;
import com.springboot.template.service.IUserService;

@Service
@Transactional
public class UserServiceImpl implements IUserService {
	
	@Autowired
	private IUserMapper userMapper;

	@Override
	public List<User> findAllUserFromBaseMapper() {
		return userMapper.selectList(null);
	}

	@Override
	public List<User> findAllUserFromCustomerMapper() {
		return userMapper.selectAllUser();
	}
}
